/*
 * class for templating hulls
 */

package item.defensive;

import item.Item;

import java.io.Serializable;

public class Hull extends Item implements DefensiveEnhancement, Serializable, Comparable<Hull> {

	private static final long serialVersionUID = -6177034021806976777L;
	
	public int hull; // the amount of hull this item provides
	
	//creates an Hull object

	protected Hull(int cost, int condition, int level, int weight, int hull) {
		super(cost, condition, level, weight);
		this.hull = hull;
	}//end of constructor Hull

	//sets natural ordering by hull values
	
	public int compareTo(Hull o) {
		return o.hull -  this.hull;
	}//end of method compareTo

}//end of class hull
